package com.esoon.entity;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * CSR_WORK_TIME
 * @author 
 */
@Data
public class CsrWorkTime implements Serializable {
    /**
     * PK
     */
    private Integer wtId;

    /**
     * 开始日期
     */
    private Date wtStartDate;

    /**
     * 结束日期
     */
    private Date wtEndDate;

    /**
     * 开始时间
     */
    private String wtStart;

    /**
     * 结束时间
     */
    private String wtEnd;

    /**
     * 冗余值
     */
    private String wtPar;

    private Integer createId;

    /**
     * 创建人
     */
    private String creater;

    /**
     * 部门编号
     */
    private Integer createDeptId;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新人
     */
    private Integer updateId;

    /**
     * 更新人
     */
    private String updater;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 租户编号
     */
    private Integer tenantId;

    /**
     * 租户名称
     */
    private String tenantName;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CsrWorkTime other = (CsrWorkTime) that;
        return (this.getWtId() == null ? other.getWtId() == null : this.getWtId().equals(other.getWtId()))
            && (this.getWtStartDate() == null ? other.getWtStartDate() == null : this.getWtStartDate().equals(other.getWtStartDate()))
            && (this.getWtEndDate() == null ? other.getWtEndDate() == null : this.getWtEndDate().equals(other.getWtEndDate()))
            && (this.getWtStart() == null ? other.getWtStart() == null : this.getWtStart().equals(other.getWtStart()))
            && (this.getWtEnd() == null ? other.getWtEnd() == null : this.getWtEnd().equals(other.getWtEnd()))
            && (this.getWtPar() == null ? other.getWtPar() == null : this.getWtPar().equals(other.getWtPar()))
            && (this.getCreateId() == null ? other.getCreateId() == null : this.getCreateId().equals(other.getCreateId()))
            && (this.getCreater() == null ? other.getCreater() == null : this.getCreater().equals(other.getCreater()))
            && (this.getCreateDeptId() == null ? other.getCreateDeptId() == null : this.getCreateDeptId().equals(other.getCreateDeptId()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateId() == null ? other.getUpdateId() == null : this.getUpdateId().equals(other.getUpdateId()))
            && (this.getUpdater() == null ? other.getUpdater() == null : this.getUpdater().equals(other.getUpdater()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getTenantId() == null ? other.getTenantId() == null : this.getTenantId().equals(other.getTenantId()))
            && (this.getTenantName() == null ? other.getTenantName() == null : this.getTenantName().equals(other.getTenantName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getWtId() == null) ? 0 : getWtId().hashCode());
        result = prime * result + ((getWtStartDate() == null) ? 0 : getWtStartDate().hashCode());
        result = prime * result + ((getWtEndDate() == null) ? 0 : getWtEndDate().hashCode());
        result = prime * result + ((getWtStart() == null) ? 0 : getWtStart().hashCode());
        result = prime * result + ((getWtEnd() == null) ? 0 : getWtEnd().hashCode());
        result = prime * result + ((getWtPar() == null) ? 0 : getWtPar().hashCode());
        result = prime * result + ((getCreateId() == null) ? 0 : getCreateId().hashCode());
        result = prime * result + ((getCreater() == null) ? 0 : getCreater().hashCode());
        result = prime * result + ((getCreateDeptId() == null) ? 0 : getCreateDeptId().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateId() == null) ? 0 : getUpdateId().hashCode());
        result = prime * result + ((getUpdater() == null) ? 0 : getUpdater().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getTenantId() == null) ? 0 : getTenantId().hashCode());
        result = prime * result + ((getTenantName() == null) ? 0 : getTenantName().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", wtId=").append(wtId);
        sb.append(", wtStartDate=").append(wtStartDate);
        sb.append(", wtEndDate=").append(wtEndDate);
        sb.append(", wtStart=").append(wtStart);
        sb.append(", wtEnd=").append(wtEnd);
        sb.append(", wtPar=").append(wtPar);
        sb.append(", createId=").append(createId);
        sb.append(", creater=").append(creater);
        sb.append(", createDeptId=").append(createDeptId);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateId=").append(updateId);
        sb.append(", updater=").append(updater);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", tenantId=").append(tenantId);
        sb.append(", tenantName=").append(tenantName);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}